package cn.haoxsf.app.system.model.vo;


import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: app
 * @description: 用户前端返回
 * @author: Ele qvbanfm@qq.com
 * @create: 2020-01-08 09:39
 **/
@Data
@ApiModel(value = "用户前端返回")
public class MemberVo {

    @ApiModelProperty(value = "id", required = true)
    private Long id;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)
    private String username;


    /**
     * 头像
     */
    @ApiModelProperty(value = "头像", required = true)
    private String avatar;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称", required = true)
    private String nickName;

    /**
     * 微信id
     */
    @ApiModelProperty(value = "微信openid", required = true)
    private String openId;

    /**
     * 创建时间
     */
    @JsonIgnore
    @ApiModelProperty(value = "创建时间", required = true)
    private Date createTime;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址", required = true)
    private String address;


    /**
     * 电话
     */
    @ApiModelProperty(value = "电话", required = true)
    private String phone;

    /**
     * 经度
     */
    @ApiModelProperty(value = "经度", required = true)
    private Double longitude;

    /**
     * 维度
     */
    @ApiModelProperty(value = "维度", required = true)
    private Double latitude;


    /**
     * 积分
     */
    @ApiModelProperty(value = "积分", required = true)
    private Integer integration;


    @ApiModelProperty(value = "师傅信息", required = true)
    private BusinessResult business;


    /**
     * 用户余额
     */
    private BigDecimal memberMoney;
    /**
     * 冻结的资金
     */
    private BigDecimal frozenMoney;

}
